import { defineConfig } from "rspress/config";

export default defineConfig({
  root: "./docs/guides", // 基于 package.json 相对路径设置文档根目录
  base: "/cjui-react-docs/", // 部署路由
  route: {
    // 自定义路由行为
    exclude: ["public/**/*"],
  },

  // 打包配置
  outDir: "./docs/dist",

  // 配置国际化
  lang: "zh",
  themeConfig: {
    locales: [
      {
        lang: "zh",
        label: "简体中文",
        title: "Cjui-React-Docs",
        description: "Rspress 搭建的 Cjui-React-Docs 项目开发文档。",
        searchPlaceholderText: "搜索内容",
        searchNoResultsText: "未搜索到",
        searchSuggestedQueryText: "请尝试使用不同的关键词再次查询",
        outlineTitle: "大纲",
        prevPageText: "前一页",
        nextPageText: "下一页",
      },
      {
        lang: "en",
        label: "English",
        title: "Cjui-React-Docs",
        description: "Rspress 搭建的 Cjui-React-Docs 项目开发文档。",
        searchPlaceholderText: "Search Docs",
        searchNoResultsText: "No results for",
        searchSuggestedQueryText: "Please try again with a different keyword",
        outlineTitle: "ON THIS Page",
        prevPageText: "Previous Page",
        nextPageText: "Next Page",
      },
    ],
  },

  // 系统内容
  title: "Cjui-React-Docs",
  description: "Rspress 搭建的 Cjui-React-Docs 项目开发文档。",
  icon: "/imgs/cjui-vue.png",
  logo: "/imgs/cjui-vue.png",
  logoText: "Cjui-React-Admin",

});
